import request from "./index";

/**
 * 获取壁纸列表
 * @param userId {string | number}
 * @returns {Promise}
 */
export function getWallList(userId) {
  return request({
    url: `/wall/list/${userId}`
  })
}

/**
 * 删除一个壁纸
 * @param wallId {string | number}
 * @param filename {string}
 * @returns {promise}
 */
export function deleteWall(wallId,filename) {
  return request({
    url: "wall",
    method: "DELETE",
    data: {
      wallId,
      filename
    }
  })
}

